package com.iotechn.unimall.app.api.coach;


import com.iotechn.unimall.data.domain.CoachDO;
import com.iotechn.unimall.data.mapper.CoachMapper;
import com.iotechn.unimall.data.model.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.rmi.ServerException;
@Service
public class CoachServiceImpl implements CoachService {
    @Autowired
    private CoachMapper coachMapper;

    @Override
    public Page<CoachDO> getCoachPage(Integer pageNo, Integer pageSize) throws ServerException {

        return coachMapper.getCoachPage(Page.div(pageNo, pageSize, CoachDO.class));

    }
}

